﻿<%@ Page Title="Site Statistics - Kevin Connolly and his World Famous Home Office" Language="C#" MasterPageFile="~/site.Master" AutoEventWireup="true" CodeFile="Stats.aspx.cs" Inherits="Stats" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
	<meta name="Description" content="Kevin Connolly's website traffic statistics" />
	<meta name="Keywords" content="kevin,connolly,website,traffic,statistics,lockergnome" />
	<meta property="og:title" content="Kevin Connolly's Site Statistics" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">
<div style="width: 95%; text-align:left; margin: 0 auto; font-family: Calibri">

	<asp:DataGrid ID="dgHits" runat="server" width="100%" OnPreRender="dgHits_PreRender" Visible="false" />
	<asp:Chart ID="cTrafficByMonth" runat="server" ImageStorageMode="UseImageLocation" ImageLocation="Graph" Width="700" Height="200" TextAntiAliasingQuality="Normal" AlternateText="Traffic by Month" AntiAliasing="All" BackColor="#f7f7f7" >
		<Series>
			<asp:Series Name="Humans" ChartType="Line" Color="Green" ToolTip="Human traffic" />
			<asp:Series Name="Spiders" ChartType="Line" Color="Red" ToolTip="Spider traffic" />
			<asp:Series Name="Total" ChartType="Line" Color="Blue" ToolTip="Total traffic" />
		</Series>
		<ChartAreas>
			<asp:ChartArea Name="ChartArea1" BackColor="#f7f7f7">
				<AxisY Title="Distinct Sessions \n per Month" />
				<AxisX LabelAutoFitStyle="LabelsAngleStep45" Title="Months" />
			</asp:ChartArea>
		</ChartAreas>
		<Legends>
			<asp:Legend Docking="Bottom" Alignment="Center" BackColor="#f7f7f7" />
		</Legends>
	</asp:Chart>
	<br /><br />

	Recent referrers:
	<asp:Panel ID="pnlReferrers" runat="server" ScrollBars="Vertical" style="height: 300px; width: 100%;">
		<asp:DataGrid ID="dgReferrers" runat="server" Width="100%" OnItemDataBound="dgReferrers_ItemDataBound" CellPadding="4" ForeColor="#333333" GridLines="None" ShowHeader="false">
			<AlternatingItemStyle BackColor="White" />
			<EditItemStyle BackColor="#2461BF" />
			<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
			<ItemStyle BackColor="#EFF3FB" />
			<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
			<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
		</asp:DataGrid>
	</asp:Panel>
	<br /><br />
	
	Recent search queries:
	<asp:Panel ID="pnlSearches" runat="server" ScrollBars="Vertical" style="height: 300px; width: 100%;">
		<asp:DataGrid ID="dgSearches" runat="server" width="100%" OnItemDataBound="dgSearches_ItemDataBound" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="false" ShowHeader="false">
			<AlternatingItemStyle BackColor="White" />
			<EditItemStyle BackColor="#2461BF" />
			<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
			<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
			<ItemStyle BackColor="#EFF3FB" />
			<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
			<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
			<Columns>
				<asp:BoundColumn DataField="Engine" HeaderText="Engine" />
				<asp:BoundColumn DataField="Query" HeaderText="Query" />
			</Columns>
		</asp:DataGrid>
		<script type="text/javascript"><!--
			google_ad_client = "ca-pub-6557158343810013";
			/* Leaderboard - kconnolly.net */
			google_ad_slot = "1090694274";
			google_ad_width = 728;
			google_ad_height = 90;
			//-->
			</script>
			<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
		</asp:Panel>
	</div>
	<div class="fb-like" data-href="http://www.kconnolly.net/stats.aspx" data-send="true" data-width="450" data-show-faces="true" data-font="arial"></div>
	<div class="fb-comments" data-href="http://www.kconnolly.net/stats.aspx" data-num-posts="4" data-width="900"></div>
</asp:Content>
